<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<link href="/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
<link href="/css/font-awesome.css?v=4.4.0" rel="stylesheet">
<link href="/css/animate.css" rel="stylesheet">
<link href="/css/layui.css" rel="stylesheet">
<link href="/css/style.css?v=4.1.0" rel="stylesheet">
<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <form class="form-horizontal m-t" id="signupForm">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">联系人姓名：</label>
                            <div class="col-sm-8">
                                <input id="name" name="name" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">联系人电话：</label>
                            <div class="col-sm-8">
                                <input id="phone" name="phone" class="form-control" type="text">
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-3 control-label">店铺图片:</label>
                            <div class="col-sm-8">
                                <button type="button" class="layui-btn layui-btn-normal" id="testList">选择图片</button>
                                <button type="button" class="layui-btn layui-btn-normal" id="shangchuan">上传图片</button>
                                <div class="layui-upload-list">
                                    <table class="layui-table">
                                        <thead>
                                        <tr>
                                            <th>图片名字</th>
                                            <th>大小</th>
                                            <th>状态</th>
                                            <th>操作</th>
                                        </tr>
                                        </thead>
                                        <tbody id="demoList"></tbody>
                                    </table>
                                </div>
                            </div>
                        </div>
                        <input type="text" id="imgUrls" name="storePhotos" style="display: none;" class="layui-input">

                        <div class="form-group">
                            <label class="col-sm-3 control-label">店铺简介：</label>
                            <div class="col-sm-8">
                                <input id="title" name="title" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">人均消费：</label>
                            <div class="col-sm-8">
                                <input id="consumption" name="consumption" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">住宿:</label>
                            <div class="col-sm-8">
                                <label class="radio-inline">
                                    <input type="radio"
                                           name="accommodation" value="1"/>
                                    正常
                                </label>
                                <label class="radio-inline">
                                    <input type="radio"
                                           name="accommodation" value="2"/>
                                    禁用
                                </label>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">美食:</label>
                            <div class="col-sm-8">
                                <label class="radio-inline">
                                    <input type="radio"
                                           name="diningRoom" value="1"/>
                                    正常
                                </label>
                                <label class="radio-inline">
                                    <input type="radio"
                                           name="diningRoom" value="2"/>
                                    禁用
                                </label>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">农家名称：</label>
                            <div class="col-sm-8">
                                <input id="farmName" name="farmName" class="form-control" type="text">
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-3 control-label">营业执照:</label>
                            <div class="col-sm-8">
                                <button type="button" class="layui-btn layui-btn-normal" id="testList1">选择图片</button>
                                <button type="button" class="layui-btn layui-btn-normal" id="shangchuan1">上传图片</button>
                                <div class="layui-upload-list">
                                    <table class="layui-table">
                                        <thead>
                                        <tr>
                                            <th>图片名字</th>
                                            <th>大小</th>
                                            <th>状态</th>
                                            <th>操作</th>
                                        </tr>
                                        </thead>
                                        <tbody id="demoList1"></tbody>
                                    </table>
                                </div>
                            </div>
                        </div>
                        <input type="text" id="imgUrls1" name="businessLicens" style="display: none;" class="layui-input">

                     <!--   <div class="form-group">
                            <label class="col-sm-3 control-label">营业执照：</label>
                            <div class="col-sm-8">
                                <input id="businessLicens" name="businessLicens" class="form-control" type="text">
                            </div>
                        </div>-->
                        <div class="form-group">
                            <label class="col-sm-3 control-label">热度：</label>
                            <div class="col-sm-8">
                                <input id="hotValue" name="hotValue" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">经度：</label>
                            <div class="col-sm-8">
                                <input id="lng" name="lng" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">纬度：</label>
                            <div class="col-sm-8">
                                <input id="lat" name="lat" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">详细地址：</label>
                            <div class="col-sm-8">
                                <input id="address" name="address" class="form-control" type="text">
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-3 control-label">热门</label>
                            <div class="col-sm-8">
                                <label class="radio-inline">
                                    <input type="radio"
                                           name="recommend" value="1"/>
                                    热门
                                </label>
                                <label class="radio-inline">
                                    <input type="radio"
                                           name="recommend" value="2"/>
                                    未热门
                                </label>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">状态:</label>
                            <div class="col-sm-8">
                                <label class="radio-inline">
                                    <input type="radio"
                                           name="updownStatus" value="1"/>
                                    正常
                                </label>
                                <label class="radio-inline">
                                    <input type="radio"
                                           name="updownStatus" value="2"/>
                                    下架
                                </label>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-8 col-sm-offset-3">
                                <button type="submit" class="btn btn-primary" onclick="addFarmShop()">提交</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<div th:include="include::footer"></div>

<script src="/js/content.js?v=1.0.0"></script>
<script src="/js/layui.js"></script>
<script src="/js/plugins/clipboard/clipboard.min.js"></script>
<script src="/js/plugins/layer/layer.min.js"></script>
<script type="text/javascript" src="/js/appjs/farm/farmShop/add.js"></script>
</body>
</html>
